﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace POVRay {
    [PRBlock("cylinder")]
    public class Cylinder : Object {
        [PRParam(HasComma=true)]
        public Vector3 End1 { get; set; }

        [PRParam(HasComma=true)]
        public Vector3 End2 { get; set; }

        [PRParam()]
        public float Radius { get; set; }

        [PRParam("open", HasValue = false)]
        public bool Open { get; set; }

        public Cylinder(Vector3 end1, Vector3 end2, float radius, bool open = false) {
            End1 = end1;
            End2 = end2;
            Radius = radius;
            Open = open;
        }

        public override string ToString(int level) {
            return this.POVRayString(level);
        }
    }
}
